/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(
        135deg,
        #f0f4ff 0%,    /* 浅蓝 */
        #f5faff 30%,   /* 天蓝 */
        #f7f8ff 60%,   /* 淡紫 */
        #fafff5 100%   /* 薄荷绿 */
    );
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    position: relative;
    &::before {
        content: "";
        position: fixed;
        top: -50vh;
        right: -30vw;
        width: 80vw;
        height: 80vh;
        background: radial-gradient(circle at 50% 50%, rgba(52,152,219,0.05) 0%, transparent 60%);
        z-index: -1;
    }
    &::after {
        content: "";
        position: fixed;
        bottom: -50vh;
        left: -30vw;
        width: 80vw;
        height: 80vh;
        background: radial-gradient(circle at 50% 50%, rgba(231,76,60,0.05) 0%, transparent 60%);
        z-index: -1;
    }
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: linear-gradient(
        150deg,
        rgba(44,62,80,0.95),  /* 深蓝 */
        rgba(52,73,94,0.95)   /* 蓝灰 */
    );
    backdrop-filter: blur(8px);
    color: white;
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden; /* 确保图片保持圆形 */
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填充整个区域并保持比例 */
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.sidebar h2 {
    font-size: 18px;
    color: #95a5a6;
    font-weight: normal;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    padding-left: 20px;
}

.sidebar nav ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: #3498db;
    transition: height 0.3s ease;
}

.sidebar nav ul li a:hover:before,
.sidebar nav ul li a.active:before {
    height: 70%;
}

.sidebar nav ul li a:hover {
    background-color: #34495e;
}

.sidebar nav ul li a.active {
    background-color: #34495e;
    color: #3498db;
}

/* 主要内容区样式 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    position: relative;
    z-index: 1;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.section {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section::after {
    content: "";
    display: table;
    clear: both;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* 响应式布局 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* 新版作品展示样式 */
.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 分类区块 */
.category-section {
    margin-bottom: 50px;
    overflow: visible;
}

/* 分类标题 */
.category-title {
    font-size: 22px;
    color: #2d3436;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
}

.category-title i {
    color: #3498db;
    font-size: 26px;
}

/* 作品展示网格布局 */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .doc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .doc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* 卡片全新设计 */
.doc-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    transform-origin: center; /* 确保以中心点缩放 */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    will-change: transform, box-shadow;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    animation: cardEntrance 0.6s ease forwards;
    opacity: 0;
}

.doc-card:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

/* 添加入场动画 */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-card:nth-child(1) { animation-delay: 0.1s; }
.doc-card:nth-child(2) { animation-delay: 0.2s; }
.doc-card:nth-child(3) { animation-delay: 0.3s; }
.doc-card:nth-child(4) { animation-delay: 0.4s; }
.doc-card:nth-child(5) { animation-delay: 0.5s; }

/* 文件类型图标 */
.file-type {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.file-type.pdf { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.file-type.excel { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

/* 文字排版 */
.card-header h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-desc {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0;
}

.card-footer {
    border-top: none;
    padding-top: 0;
    justify-content: flex-start; /* 左对齐文件大小 */
    text-decoration: none !important;
}

.file-size::before {
    content: "📦 ";
}

.file-date {
    display: none;
}

/* 作品和Demo展示样式 */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(500px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 720px; /* 增加高度 */
}

.demo-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.demo-header h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.demo-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.demo-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 15px 0; /* 增加底部间距 */
}

.design-section {
    font-size: 14px;
    line-height: 1.6;
}

.design-group h6 {
    font-size: 15px;
    margin: 0.8rem 0;
    color: #2c3e50;
}

.design-section ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.design-section li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.demo-link {
    bottom: 0;
    padding: 15px 0;
    background: linear-gradient(135deg, #3498db, #36d1dc); /* 改为蓝绿渐变 */
    box-shadow: 0 2px 8px rgba(52,152,219,0.2);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #000;
}

/* 添加工作经历相关样式 */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.company {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.date {
    color: #666;
}

.work-section {
    margin-bottom: 25px;
}

.work-section h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.work-section ul {
    list-style-type: none;
    padding-left: 0;
}

.work-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.work-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.doc-content {
    padding: 30px;
    line-height: 1.6;
}

/* 项目经验样式优化 */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-item {
    flex: 1 1 calc(50% - 10px); /* 一行两个，减去间距的一半 */
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-info h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-info h3 {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.project-info .date {
    color: #666;
    font-size: 14px;
}

.project-section {
    margin-bottom: 15px;
}

.project-section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-section h4 {
    color: #3498db;
    font-size: 16px;
    margin: 8px 0 5px 0;
    line-height: 1.2;
}

.project-section p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 15px;
}

.project-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.project-section ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #555;
    font-size: 15px;
}

.project-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* 最后一个元素去除底部边距 */
.project-section:last-child {
    margin-bottom: 0;
}

.project-section ul li:last-child {
    margin-bottom: 0;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .project-item {
        flex: 1 1 100%; /* 在小屏幕上一行显示一个 */
    }
}

/* 个人简历样式 */
.profile-card, .education-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 基本信息样式 */
.basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
}

.label {
    color: #666;
    font-weight: 500;
    margin-right: 10px;
    min-width: 80px;
}

.value {
    color: #2c3e50;
    font-weight: 500;
}

/* 个人陈述样式 */
.personal-statement {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.personal-statement p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 教育经历样式 */
.edu-header {
    margin-bottom: 20px;
}

.edu-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 10px;
}

.edu-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
}

.school {
    font-weight: 500;
    color: #3498db;
}

/* 课程列表样式 */
.courses h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.course-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.course-item h5 {
    color: #3498db;
    margin-bottom: 8px;
    font-size: 16px;
}

.course-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .basic-info {
        grid-template-columns: 1fr;
    }
    
    .edu-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* 个人简介网格布局 */
.summary-grid {
    display: grid;
    grid-template-columns: 60% 38%; /* 左侧稍宽一些 */
    gap: 2%;
    align-items: start;
}

/* 课程列表改为垂直排列 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
}

/* 响应式调整 */
@media (max-width: 968px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-card {
        order: 2; /* 在小屏幕上放到下面 */
    }
    
    .profile-card {
        order: 1; /* 在小屏幕上放到上面 */
    }
}

/* 视频卡片样式 */
.video-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    grid-column: span 2; /* 占据两列宽度 */
}

.video-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-card {
        grid-column: span 1;
    }
    
    .video-container {
        padding-bottom: 75%; /* 4:3 比例更适合移动端 */
    }
}

/* 新增全局去除下划线规则 */
a, .doc-card, .card-header h4, .card-desc, .card-footer {
    text-decoration: none !important;
}

/* 修复链接悬停下划线 */
.doc-card:hover, .doc-card:hover * {
    text-decoration: none !important;
}

/* 特别处理文件大小图标 */
.file-size::before {
    text-decoration: none !important;
}

/* 中等屏幕显示3列 */
@media (max-width: 1200px) {
    .doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* 平板端显示2列 */
@media (max-width: 900px) {
    .doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 移动端保持单列 */
@media (max-width: 600px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* 新配色方案 */
:root {
    --primary: #4A4AFF; /* 主色调 */
    --secondary: #6C5CE7; /* 辅助色 */
    --background: #F8F9FA; /* 背景色 */
    --text-primary: #2D3436; /* 主文字 */
    --text-secondary: #636E72; /* 辅助文字 */
    --border: #DFE6E9; /* 边框色 */
    --font-primary: 'Segoe UI', system-ui, sans-serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    --text-base: 1rem;
    --leading-normal: 1.6;
    --color1: #FF6B6B; /* 珊瑚红 */
    --color2: #4ECDC4; /* 青绿 */
    --color3: #45B7D1; /* 天蓝 */
    --color4: #96CEB4; /* 薄荷 */
    --color5: #FF9F43; /* 橙黄 */
    --color6: #A55EEA; /* 紫色 */
}

.nightmare-info {
    background: #000000;
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* 标题区 */
.demo-header {
    border-bottom: 1px solid var(--border);
}

.demo-header h1 {
    color: var(--primary);
    -webkit-text-stroke: 0.5px #00CC00;
    text-shadow: 0 0 2px rgba(0,255,0,0.5);
}

.meta-line {
    color: var(--text-secondary);
}

/* 内容区块 */
.block-title {
    color: #00FF00; /* 极限饱和绿色 */
    text-shadow: 0 0 15px rgba(0,255,0,0.5);
    -webkit-text-stroke: 0.5px #00CC00;
}

.block-content {
    color: #FFD700; /* 饱和金色 */
    font-weight: 500;
}

/* 设计模块 */
.design-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

.design-category {
    color: #FF6B6B; /* 高饱和珊瑚红 */
}

.design-category::before {
    background: var(--accent-color);
}

.item-bullet {
    background: var(--secondary);
}

.design-item::after {
    background: var(--border);
}

/* 悬停效果 */
.design-item:hover {
    background: rgba(108,92,231,0.05);
}

/* 数据面板 */
.data-panel {
    padding: 20px;
}

.data-item {
    margin-bottom: 25px;
}

.data-label {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sound-wave {
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--accent-color) 100%);
    border-radius: 4px;
    margin: 10px 0;
}

.stage-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stage {
    background: rgba(108,92,231,0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    position: relative;
}

.stage::after {
    content: attr(data-level);
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 参数仪表 */
.param-grid {
    display: grid;
    gap: 15px;
    padding: 20px;
}

.param-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
}

.param-label {
    color: var(--secondary);
    font-size: 0.9rem;
}

.param-value {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 8px 0;
}

.param-meter {
    height: 4px;
    background: rgba(108,92,231,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.5s ease;
}

/* 心流图表 */
.flow-chart {
    display: flex;
    height: 100px;
    align-items: flex-end;
    gap: 15px;
    padding: 20px;
}

.flow-phase {
    flex: 1;
    background: linear-gradient(
        to top, 
        var(--primary), 
        var(--accent-color)
    );
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.death-mechanism {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255,118,117,0.1);
    border-radius: 8px;
    margin: 20px;
    color: var(--accent-color);
}

/* 核心定位标题 */
.block-title {
    color: #00FF00; /* 极限饱和绿色 */
    text-shadow: 0 0 15px rgba(0,255,0,0.5);
    -webkit-text-stroke: 0.5px #00CC00;
}

/* 核心设计实现标题 */
.design-section h2.section-title {
    color: #FF2D55; /* 高饱和品红 */
    border-left: 4px solid #FF2D55;
    padding-left: 1rem;
}

/* 调整背景增强对比 */
.nightmare-info {
    background: #000000;
}

.info-column {
    font-family: var(--font-primary);
    line-height: var(--leading-normal);
    color: #E0E0E0;
    background: #1A1A1A;
    padding: 2rem;
}

/* 标题区 */
.demo-header {
    margin-bottom: 2.5rem;
}

.demo-title {
    font: 600 2rem/1.2 var(--font-secondary);
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #858585;
}

/* 内容区块 */
.design-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font: 500 1.5rem/1.3 var(--font-secondary);
    color: #6C5CE7;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(108,92,231,0.3);
}

.section-lead {
    font-size: 1.1rem;
    color: #B3B3B3;
    margin-bottom: 2rem;
}

/* 设计组 */
.design-group {
    margin: 1.5rem 0;
}

.design-subgroup {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(42,111,255,0.1);
}

.design-subcategory {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.design-list {
    list-style: none;
    padding-left: 0;
}

.design-list .design-item {
    padding-left: 1.8rem;
    position: relative;
    margin: 0.6rem 0;
}

.design-list .design-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* 作品链接区块 */
.work-link-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108,92,231,0.2);
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
}

.platform-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon i {
    color: white;
    font-size: 1.8rem;
}

.link-content h3 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
}

.external-link:hover {
    color: #8A7CFF;
}

.external-link i {
    font-size: 0.9rem;
}

/* 整体布局 */
.demo-interface {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--background);
}

/* 信息面板 */
.info-panel {
    position: relative;
    z-index: 1;
    min-height: 600px;
}

.panel-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 外链区块 */
.external-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108,92,231,0.2);
}

.link-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon i {
    color: white;
    font-size: 1.8rem;
}

.safe-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    background: rgba(74,74,255,0.1);
    transition: all 0.3s ease;
}

.safe-link:hover {
    background: rgba(74,74,255,0.2);
    color: #8A7CFF;
}

/* 文字颜色调整 */
h2, h3 {
    color: var(--text-primary);
}

.design-details {
    color: var(--text-secondary);
}

/* 标题样式 */
.design-details h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.design-details h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 4px;
    height: 1em;
    background: var(--primary);
    border-radius: 2px;
}

/* 分类标题 */
.design-category {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

/* 列表项优化 */
.design-item {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.8rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.design-item::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.1em;
}

/* 强调关键词 */
.design-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 添加呼吸感间距 */
.design-details > * + * {
    margin-top: 1.5rem;
}

/* 添加隔离层 */
.demo-container {
    isolation: isolate; /* 创建新的层叠上下文 */
    position: relative;
    z-index: 0;
}

.demo-content {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10; /* 提升层级 */
}

.demo-content.active {
    display: block !important;
    opacity: 1;
    z-index: 2;
}

/* 添加终极保护样式 */
#float-container {
    all: initial !important; /* 重置容器样式 */
}

#float-container * {
    all: unset !important; /* 重置内容样式 */
    display: revert !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#float-container .demo-content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
}

/* 添加最终样式保护 */
.force-visible {
    all: initial !important; /* 重置所有继承样式 */
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.force-visible * {
    all: initial !important; /* 重置子元素样式 */
    display: revert !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 添加终极样式保护 */
div[style*="z-index: 2147483647"] {
    all: initial !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

div[style*="z-index: 2147483647"] * {
    all: revert !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 删除原有demo相关样式，替换为以下内容 */
.demo-wrapper {
    position: relative;
    min-height: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.demo-tabs {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.demo-tab {
    padding: 10px 20px;
    margin-right: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.demo-tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.demo-content {
    padding: 20px;
}

.demo-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-pane.active {
    display: block;
    opacity: 1;
}

/* 优化文字间距 */
.design-section h4 {
    margin: 1.2rem 0;
    font-size: 1.1rem;
}

.design-group {
    margin: 1.5rem 0;
}

.design-group h5 {
    margin: 1rem 0;
    font-size: 1rem;
}

.design-section ul {
    margin: 0.8rem 0;
}

.design-section li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* 调整底部链接定位 */
.demo-link {
    bottom: 0;
    padding: 15px 0;
    background: linear-gradient(135deg, #3498db, #36d1dc); /* 改为蓝绿渐变 */
    box-shadow: 0 2px 8px rgba(52,152,219,0.2);
}

/* 复用项目经验样式 */
.project-grid {
    /* 保持原有网格布局 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    /* 保持原有卡片样式 */
    background: rgba(255,255,255,0.92);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s;
    border: 3px solid;
    border-image: linear-gradient(
        var(--angle),
        var(--color1) 0%,
        var(--color2) 20%,
        var(--color3) 40%,
        var(--color4) 60%,
        var(--color5) 80%,
        var(--color6) 100%
    ) 1;
    animation: rotateHue 10s linear infinite;
}

@keyframes rotateHue {
    0% { --angle: 45deg; }
    100% { --angle: 405deg; }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 45deg;
    inherits: false;
}

/* 背景光效优化 */
.project-card::after {
    background: linear-gradient(
        45deg,
        var(--color1) 10%,
        var(--color2) 30%,
        var(--color3) 50%,
        var(--color4) 70%,
        var(--color5) 90%,
        transparent 100%
    );
    opacity: 0.1;
    mix-blend-mode: overlay;
}

/* 新增Demo专属样式 */
.engine-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.15);
}

.engine-tag.unreal { 
    background: rgba(155,89,182,0.1);
    border-color: rgba(155,89,182,0.15);
}

.skill-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.skill-tag.unity { background: rgba(0,122,255,0.1); color: #007aff; }
.skill-tag.unreal { background: rgba(155,89,182,0.1); color: #9b59b6; }
.skill-tag.ai { background: rgba(46,204,113,0.1); color: #2ecc71; }

.loading-placeholder {
    height: 16px;
    background: #eee;
    margin: 8px 0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* 整体布局优化 */
#demos .section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 1rem;
}

#demos .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* 卡片视觉升级 */
.project-card:hover {
    transform: translateY(-5px);
}

/* 标题层级优化 */
.project-header h3 {
    font-size: 1.6rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 引擎标签美化 */
.engine-tag {
    background: #e8f4ff;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #d0e3f5;
}

/* 内容区块优化 */
.design-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #3498db;
}

.design-group h5 {
    color: #3498db;
    font-size: 1.1rem;
    margin: 1.2rem 0 0.8rem;
    position: relative;
    padding-left: 1.8rem;
}

.design-group h5::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.2rem;
}

/* 列表项优化 */
.achievement-list li {
    padding: 0.8rem 1.2rem;
    margin: 0.6rem 0;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.6;
    transition: background 0.3s ease;
}

.achievement-list li:hover {
    background: #f0f7ff;
}

/* 链接按钮美化 */
.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #36d1dc); /* 改为蓝绿渐变 */
    color: white !important;
    border-radius: 30px;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.demo-link:hover {
    background-size: 150% 150%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px) scale(1.05);
}

.demo-link::after {
    content: "→";
    font-weight: bold;
    transition: transform 0.3s ease;
}

.demo-link:hover::after {
    transform: translateX(3px);
}

/* 颜色增强 */
.project-header h3 {
    color: #2a4365; /* 更深的标题色 */
    position: relative;
    padding-left: 1.8rem;
}

.project-header h3::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #e67e22; /* 添加橙色点缀 */
}

/* 紧凑行间距优化 */
.achievement-list li {
    line-height: 1.5; /* 从1.6下调 */
    padding: 0.6rem 1rem; /* 减少内边距 */
    margin: 0.4rem 0;
}

.design-group {
    margin: 1rem 0; /* 减少间距 */
}

.design-group h5 {
    margin: 0.8rem 0; /* 调小标题间距 */
    font-size: 1rem;
}

/* 颜色层次增强 */
.engine-tag.unreal {
    background: #f3e8ff;
    color: #6b46c1;
    border-color: #e9d8fd;
}

.achievement-list li::before {
    color: #e67e22; /* 列表前缀色 */
}

/* 卡片尺寸优化 */
.project-card {
    padding: 1.5rem; /* 减少内边距 */
    border-radius: 12px; /* 调小圆角 */
}

.design-section h4 {
    font-size: 1.1rem;
    margin: 1rem 0;
    padding-left: 0.8rem;
    border-left-width: 3px;
}

/* 链接按钮优化 */
.demo-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Unity项目专属样式 */
.demo-link.unity-link {
    background: linear-gradient(135deg, var(--color2), var(--color3));
    box-shadow: 0 2px 8px rgba(46,204,113,0.2);
}

/* UE5项目专属样式 */
.demo-link.unreal-link {
    background: linear-gradient(135deg, var(--color6), var(--color1));
    box-shadow: 0 2px 8px rgba(155,89,182,0.2);
}

/* 悬停动效增强 */
.demo-link:hover {
    background-size: 150% 150%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px) scale(1.05);
}

.demo-link.unity-link:hover {
    background: linear-gradient(135deg, var(--color3), var(--color2));
}

.demo-link.unreal-link:hover {
    background: linear-gradient(135deg, var(--color1), var(--color6));
}

/* 基础变量 */
:root {
  --primary: #3498db;
  --secondary: #e67e22;
  --accent: #9b59b6;
  --bg: #f8f9fa;
  --card-bg: linear-gradient(145deg, #fff, #f8fafc);
}

/* 全局重置 */
body { background: var(--bg); }

/* 卡片系统 */
.project-card, .demo-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s;
  &:hover { transform: translateY(-5px); }
}

/* 标签系统 */
[class*="-tag"] {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  &.engine-tag {
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.15);
    &.unreal { 
      background: rgba(155,89,182,0.1);
      border-color: rgba(155,89,182,0.15);
    }
  }
}

/* 列表系统 */
.achievement-list li {
  padding: 0.6rem 1rem;
  margin: 0.4rem 0;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  line-height: 1.5;
  &::before { content: "🎮"; color: var(--secondary); }
}

/* 按钮系统 */
.demo-link {
  display: inline-flex;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: #fff!important;
  text-decoration: none;
  transition: all 0.3s;
  &::after { content: "→"; margin-left: 0.5rem; }
  &.unity-link { background: linear-gradient(135deg, var(--color2), var(--color3)); }
  &.unreal-link { background: linear-gradient(135deg, var(--color6), var(--color1)); }
  &:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
  }
}

/* 响应式处理 */
@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; padding: 1rem; }
  .project-card { padding: 1rem; }
  .demo-link { font-size: 0.9rem; }
}

/* 增强卡片背景 */
.project-card {
    background: linear-gradient(145deg, #fff, #f8fafc);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.8);
}

/* 添加动态投影 */
.achievement-list li {
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s;
    &:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }
}

/* 新增装饰性边框 */
.design-section h4 {
    position: relative;
    &::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--secondary);
    }
}

/* 动态渐变背景动画 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 专业技能样式 */
#skills {
    background: rgba(255,255,255,0.95);
    padding: 4rem 2rem;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-meta {
    display: flex;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    &.ai {
        background: rgba(46,204,113,0.1);
        color: #2ecc71;
    }
}

.skill-tag.unity { background: rgba(0,122,255,0.1); color: #007aff; }
.skill-tag.unreal { background: rgba(155,89,182,0.1); color: #9b59b6; }
.skill-tag.design { background: rgba(52,152,219,0.1); color: #3498db; }
.skill-tag.ai { background: rgba(46,204,113,0.1); color: #2ecc71; }

.skill-list li {
    padding: 0.8rem 0;
    color: #666;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
}

.skill-list li::before {
    content: "▹";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* 保留引擎标签基础样式 */
.engine-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.15);
    &.unreal { 
        background: rgba(155,89,182,0.1);
        border-color: rgba(155,89,182,0.15);
    }
}

/* 继承work-header样式 */
.work-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 新增技能组样式 */
.skill-group {
    margin: 1.5rem 0;
}

.skill-group h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}

.skill-group h4::before {
    content: "▹";
    color: #e67e22;
    position: absolute;
    left: 0;
}

.skill-group ul {
    padding-left: 1.2rem;
}

.skill-group li {
    color: #666;
    line-height: 1.6;
    margin: 0.6rem 0;
    position: relative;
}

/* 完全继承工作经历样式 */
.work-section h3 {
    color: #2c3e50;
    border-left: 3px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0 1rem;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.achievement-list li::before {
    content: "🎮";
    position: absolute;
    left: 0;
}

/* 修改游戏经历布局 */
#gaming-experience .content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.work-section {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 400px;
    background: rgba(255,255,255,0.95);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 新增联系方式行样式 (插入在行613前) */
.contact-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .contact-row {
        grid-template-columns: 1fr;
    }
} 